package com.ht.medicaltreatment.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ht.medicaltreatment.R
import com.ht.medicaltreatment.bean.DetailBean

class RecordDetailAdapter : BaseQuickAdapter<DetailBean,BaseViewHolder>(R.layout.item_record_detail_layout){
    override fun convert(holder: BaseViewHolder, item: DetailBean) {
        holder.setText(R.id.titleX,"${getItemPosition(item)+1}")
        holder.setText(R.id.titleL,item.name)
        holder.setText(R.id.titleL1,item.sampleCategoryDict.name)
        holder.setText(R.id.titleJ,item.sampleSubject)
    }

}
